package com.exp.bookhouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.exp.bookhouse.pojo.WebSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface WebSettingMapper extends BaseMapper<WebSetting> {

    @Update("update tb_web_setting set views = views + 1 where id = 1")
    void updateViews();
}
